package cn.wetcland.urban.framework.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CustomerRegisterDTO {

    @NotBlank(message = "用户名不能为空")
    public String username;

    @NotBlank(message = "密码不能为空")
    public String password;

    @NotBlank(message = "确认密码不能为空")
    public String confirmPassword;

    @NotBlank(message = "手机号不能为空")
    public String phone;

    @NotNull(message = "请选择省份")
    public Long provinceId;

    @NotNull(message = "请选择城市")
    public Long cityId;

    @NotNull(message = "请选择区县")
    public Long districtId;

    @NotNull(message = "性别不能为空")
    public Integer gender;

    @NotBlank(message = "codekey不能为空")
    public String codeKey;

    @NotBlank(message = "验证码不能为空")
    public String code;

}
